﻿@model PessModel.Contract

@{
    ViewBag.Title = "Delete";
}

<h2>删除协议 @Model.Title</h2>
<h3>协议关联评委人数：@Model.ContractAssignments.Count, 已签人数：@Model.ContractAssignments.Where(c=>c.Signed==true).Count()</h3>
@if (Model.ContractAssignments.Count > 0) { 
        <h3>请先删除已关联的评委！（专家表页面）</h3>
    }
<fieldset>
    <legend>Contract</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Title)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.FilePath)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FilePath)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.TimeStamp)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TimeStamp)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.FileSize)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FileSize)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    <p>
        @if (Model.ContractAssignments.Count == 0) { 
        <input type="submit" value="Delete" /> }
        @Html.ActionLink("返回", "Index")
    </p>
}
